<?php
global $_RQ,$_AR;
//判断是否来自场景体,底部菜单不变
if($_RQ['plugin_name']){
	$this->session('plugin_name',$_RQ['plugin_name']);
}
$plugin_name=$this->session('plugin_name')?$this->session('plugin_name'):'';
if($plugin_name){
	$return['footernav']=$this->plugin($plugin_name)->plugin_setting('basic')['footernav'];
}
//全局返回mid
$return['mid']=$_SESSION['mid'];
$return['setting']=$return['pluginset']=$this->setting;
$return['shopset']=plugin('jy_weishop')->plugin_setting('shopset');
$return['setting']['logo']=$return['shopset']['logo'];
$return['setting']['title']=$return['shopset']['title'];
$return['setting']['toplogo']=$return['setting']['toplogo']?:$return['setting']['logo'];
if($return['shopset']['closeshop']==1 && $_RQ['action'] !='close'){
	exi('','error','jy_weishop/close/');
}
$_SESSION['tx_ad']=1;
$return['sharedata']=array(
		'title'=>$return['setting']['share_title']?$return['setting']['share_title']:'首页-拼单商城',
		'desc'=>$return['setting']['share_desc']?$return['setting']['share_desc']:'拼单商城单商户版，主流经典拼单商城，拼着买，更便宜！',
		'link'=>custom_url('jy_ad/index//fromuser='.$_SESSION['uid'],true),
		'imgUrl'=>$return['setting']['share_image']?tomedia($return['setting']['share_image']):tomedia($return['setting']['icon'])
);
?>